package com.jch.dm.chapter_5_singleton;

/**
 * @author: jch
 **/
public class Main {
    public static void main(String[] args) {
        System.out.println("Start.");
        Singleton obj1 = Singleton.getSingleton();
        Singleton obj2 = Singleton.getSingleton();
        if (obj1.equals(obj2)) {
            System.out.println("obj1与obj2是相同实例。");
        } else {
            System.out.println("obj1与obj2是不同实例。");
        }
        System.out.println("End.");
    }
}
